<?php

namespace app\model\api;

use laytp\BaseModel;

class MiniCrop extends BaseModel
{
    /**
     * @param $record_id
     * @return MiniCrop|array|mixed|\think\Model|null
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function getCropInfo($record_id)
    {
        return $this->field('get_way,effect,unlock,formula,formula_tool,match_good')
            ->where('record_id',$record_id)->cache(true)->find();
    }
}